package modelLayer;


/**
 * Write a description of class Copy here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Copy{
    private String serialNumber;
    private String purchaseDate;
    private double purchasePrice;
    private boolean isTaken ;
    
    public Copy(String serialNumber, String purchaseDate, double purchasePrice) {
        this.serialNumber=serialNumber;
        this.purchaseDate=purchaseDate;
        this.purchasePrice=purchasePrice;
        isTaken = false;
    }
    
    public void setSerialNumber(String serialNumber){
        this.serialNumber=serialNumber;
    }
    
    public void setPurchaseDate(String purchaseDate){
        this.purchaseDate=purchaseDate;
    }
    
    public void setPurchasePrice(double purchasePrice){
        this.purchasePrice=purchasePrice;
    }
    
    public String getSerialNumber(){
        return serialNumber;
    }
    
    public String getPurchaseDate(){
        return purchaseDate;
    }
    
    public double getPurchasePrice(){
        return purchasePrice;
    }
    
    public void setIsTaken(boolean value){
    	isTaken = value;
    }
    
    public boolean getIsTaken(){
    	return isTaken;
    }
    
    public void showCopy(){
        //String serialNumber, String purchaseDate, double purchasePrice
    	
        System.out.println("Serial number: "+serialNumber);
        System.out.println("Purchase Date: "+purchaseDate);
        System.out.println("Purchase Price"+purchasePrice);
        System.out.println("------------------------------------------------");
    }
}
